﻿using Domain.Entity.sys;
using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.BusinessTypeService
{
    public interface IBusinessTypeService
    {
        //分页查询业务类型信息
        Task<FenYe<BusinessType>> GetBusinessType(FenYe<BusinessType> fenYe, string? typename, int? status, string? field, string? createname);

        //添加业务类型信息
        Task<int> AddBusinessType(AddBusinessTypeDto addBusinessTypeDto);

        //根据id查询业务类型信息
        Task<BusinessType> GetBusinessTypeById(int id);

        //修改业务类型信息
        Task<int> UpdateBusinessType(UpdateBusinessTypeDto updateBusinessTypeDto);

        //删除业务类型信息
        Task<int> DeleteBusinessType(int id);


        //根据方向查询应业务类型
        Task<List<BusinessType>> GetBusinessTypes(string field);
    }
}
